<?php

namespace App\Http\Controllers\Weixin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use EasyWeChat\Foundation\Application;

class IndexController extends Controller
{
    /**
     * 微信入口文件
     */
    public function index()
    {
        echo 1;exit();
        $app = new Application();
        $server = $app->server;
        $server->setMessageHandler(function ($message) {
            return "您好！欢迎关注我!";
        });

        $server->serve()->send();
    }
}
